package com.work.saturn.bean;

import com.immo.libcommon.base.BaseBean;

import java.util.List;

public class MyDetailBean extends BaseBean {

    /**
     * payload : {"name":"Predict BTC","content":"BTC 小幅拉升价格有所回升，预测9月底整合约交割价是多少刀？","creator":"admin","judgePerson":"FutureBureau BlockChain Bootstrap User","endTime":"2018-09-30","result":"Undecided","options":[{"option":"6700以下（不含6700）","optionSum":10,"percentage":0.5,"singleCount":10,"count":20},{"option":"6700-6999.9","optionSum":0,"percentage":0.5,"singleCount":10,"count":20},{"option":"7000-7299.9","optionSum":0,"percentage":0,"singleCount":0,"count":20},{"option":"7300-7599.9","optionSum":0,"percentage":0,"singleCount":0,"count":20},{"option":"7600以上","optionSum":0,"percentage":0,"singleCount":0,"count":20}]}
     */

    private PayloadBean payload;

    public PayloadBean getPayload() {
        return payload;
    }

    public void setPayload(PayloadBean payload) {
        this.payload = payload;
    }

    public static class PayloadBean {
        /**
         * name : Predict BTC
         * content : BTC 小幅拉升价格有所回升，预测9月底整合约交割价是多少刀？
         * creator : admin
         * judgePerson : FutureBureau BlockChain Bootstrap User
         * endTime : 2018-09-30
         * result : Undecided
         * options : [{"option":"6700以下（不含6700）","optionSum":10,"percentage":0.5,"singleCount":10,"count":20},{"option":"6700-6999.9","optionSum":0,"percentage":0.5,"singleCount":10,"count":20},{"option":"7000-7299.9","optionSum":0,"percentage":0,"singleCount":0,"count":20},{"option":"7300-7599.9","optionSum":0,"percentage":0,"singleCount":0,"count":20},{"option":"7600以上","optionSum":0,"percentage":0,"singleCount":0,"count":20}]
         */

        private String name;
        private String content;
        private String creator;
        private String judgePerson;
        private String endTime;
        private String result;
        private List<OptionsBean> options;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCreator() {
            return creator;
        }

        public void setCreator(String creator) {
            this.creator = creator;
        }

        public String getJudgePerson() {
            return judgePerson;
        }

        public void setJudgePerson(String judgePerson) {
            this.judgePerson = judgePerson;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getResult() {
            return result;
        }

        public void setResult(String result) {
            this.result = result;
        }

        public List<OptionsBean> getOptions() {
            return options;
        }

        public void setOptions(List<OptionsBean> options) {
            this.options = options;
        }

        public static class OptionsBean {
            /**
             * option : 6700以下（不含6700）
             * optionSum : 10
             * percentage : 0.5
             * singleCount : 10
             * count : 20
             */

            private String option;
            private int optionSum;
            private double percentage;
            private String singleCount;
            private String count;

            public String getOption() {
                return option;
            }

            public void setOption(String option) {
                this.option = option;
            }

            public int getOptionSum() {
                return optionSum;
            }

            public void setOptionSum(int optionSum) {
                this.optionSum = optionSum;
            }

            public double getPercentage() {
                return percentage;
            }

            public void setPercentage(double percentage) {
                this.percentage = percentage;
            }

            public String getSingleCount() {
                return singleCount;
            }

            public void setSingleCount(String singleCount) {
                this.singleCount = singleCount;
            }

            public String getCount() {
                return count;
            }

            public void setCount(String count) {
                this.count = count;
            }
        }
    }
}
